package com.warm.pump.module.skd.service;

import com.warm.pump.frame.gen.bean.PageBean;
import com.warm.pump.module.skd.bean.po.gen.ScheduleJobDtl;
import com.warm.pump.module.work.bean.WorkTree;

import java.util.List;
import java.util.Map;

/**
 * skd_job_dtl
 */
public interface IScheduleJobDtlService {

    ScheduleJobDtl queryObject(String id);

    ScheduleJobDtl queryObject(Map<String, Object> map);

    List<ScheduleJobDtl> queryList(Map<String, Object> map);

    PageBean getPageBeanByMap(Map map, int pageNo, int pageSize);

    int queryTotal(Map<String, Object> map);

    void save(ScheduleJobDtl scheduleJobDtl);

    /**
     * 保存任务明细
     *
     * @param jobId
     * @param itemTrees
     */
    void saveJobDtl(Long jobId, List<WorkTree> itemTrees);

    void update(ScheduleJobDtl scheduleJobDtl);

    void delete(Map<String, Object> map);

    void delete(String id);

    void deleteBatch(String[] ids);
}
